package Vista;
import java.awt.event.ActionListener;

import javax.swing.JButton;
import javax.swing.JLabel;

import javax.swing.WindowConstants;
import javax.swing.SwingUtilities;


/**
* This code was edited or generated using CloudGarden's Jigloo
* SWT/Swing GUI Builder, which is free for non-commercial
* use. If Jigloo is being used commercially (ie, by a corporation,
* company or business for any purpose whatever) then you
* should purchase a license for each developer using Jigloo.
* Please visit www.cloudgarden.com for details.
* Use of Jigloo implies acceptance of these licensing terms.
* A COMMERCIAL LICENSE HAS NOT BEEN PURCHASED FOR
* THIS MACHINE, SO JIGLOO OR THIS CODE CANNOT BE USED
* LEGALLY FOR ANY CORPORATE OR COMMERCIAL PURPOSE.
*/
public class VentanaPrincipalmenu extends javax.swing.JFrame {
	private JButton BttJuez;
	private JButton btnCalendario;
	private JLabel Lblpantallaprincipal;
	private JButton Bttresultados;
	private JButton Bttcompetencia;
	private JButton Bttequipo;

	
	
	public VentanaPrincipalmenu() {
		super();
		initGUI();
	}
	
	private void initGUI() {
		try {
			setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
			getContentPane().setLayout(null);
			{
				BttJuez = new JButton();
				getContentPane().add(BttJuez);
				BttJuez.setText("Agregar Juez");
				BttJuez.setBounds(93, 69, 134, 22);
				BttJuez.setFont(new java.awt.Font("Century Schoolbook L",1,12));
				BttJuez.setActionCommand("Juez");
				
			}
			{
				Bttequipo = new JButton();
				getContentPane().add(Bttequipo);
				Bttequipo.setText("Agregar Equipo");
				Bttequipo.setBounds(93, 117, 134, 22);
				Bttequipo.setFont(new java.awt.Font("Century Schoolbook L",1,12));
				Bttequipo.setActionCommand("Equipo");
			}
			{
				Bttcompetencia = new JButton();
				getContentPane().add(Bttcompetencia);
				Bttcompetencia.setText("Competencia");
				Bttcompetencia.setBounds(93, 170, 134, 22);
				Bttcompetencia.setFont(new java.awt.Font("Century Schoolbook L",1,12));
				Bttcompetencia.setActionCommand("Competencia");
			}
			{
				Bttresultados = new JButton();
				getContentPane().add(Bttresultados);
				Bttresultados.setText("Posiciones/Medallas");
				Bttresultados.setBounds(93, 214, 134, 22);
				Bttresultados.setFont(new java.awt.Font("Century Schoolbook L",1,12));
				Bttresultados.setActionCommand("Posiciones");
			}
			{
				Lblpantallaprincipal = new JLabel();
				getContentPane().add(Lblpantallaprincipal);
				Lblpantallaprincipal.setText("Menu Principal");
				Lblpantallaprincipal.setBounds(51, 12, 231, 27);
				Lblpantallaprincipal.setFont(new java.awt.Font("Century Schoolbook L",1,26));
			}
			{
				btnCalendario = new JButton();
				getContentPane().add(btnCalendario);
				btnCalendario.setText("Calendario/Resultados");
				btnCalendario.setBounds(85, 253, 148, 23);
				btnCalendario.setActionCommand("Calendario");
				btnCalendario.setFont(new java.awt.Font("Century Schoolbook L",1,12));
			}
			pack();
			this.setSize(318, 342);
		} catch (Exception e) {
		    //add your error handling code here
			e.printStackTrace();
		}
	}
	
	public void AgregarListener(ActionListener listener){
		BttJuez.addActionListener(listener);
		Bttequipo.addActionListener(listener);
		Bttresultados.addActionListener(listener);
		Bttcompetencia.addActionListener(listener);
		btnCalendario.addActionListener(listener);
	}


}
